<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_coach.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_coach.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_coach',
                    name: 'T_coach',
                    url: "/T_coach/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_card_face_id":"","c_teaching_age":"","c_status":"","c_skill":"","c_ski_age":"","c_qualifications":"","c_photo":"","c_phone":"","c_password":"","c_order":"","c_name":"","c_media_ids":"","c_level_id":"","c_level":"","c_language":"","c_is_self_edit":"","c_id":"","c_group_id":"","c_group":"","c_gender":"","c_disabled":"","c_description":"","c_create_time":"","c_card_id":"","c_technology_type":"","c_version":""},
                editFormOptions: [[{"title":"c_card_face_id","field":"c_card_face_id","type":"text"},
                               {"title":"教龄","field":"c_teaching_age","type":"text"},
                               {"title":"c_status","field":"c_status","type":"text"}],
                              [{"title":"c_skill","field":"c_skill","type":"text"},
                               {"title":"雪龄","field":"c_ski_age","type":"text"},
                               {"title":"c_qualifications","field":"c_qualifications","type":"text"}],
                              [{"title":"c_photo","field":"c_photo","type":"text"},
                               {"title":"c_phone","field":"c_phone","type":"text"},
                               {"title":"c_password","field":"c_password","type":"text"}],
                              [{"title":"c_order","field":"c_order","type":"text"},
                               {"title":"c_name","field":"c_name","type":"text"},
                               {"title":"c_media_ids","field":"c_media_ids","type":"text"}],
                              [{"title":"c_level_id","field":"c_level_id","type":"text"},
                               {"title":"c_level","field":"c_level","type":"text"},
                               {"title":"c_language","field":"c_language","type":"text"}],
                              [{"title":"c_is_self_edit","field":"c_is_self_edit","type":"text"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_group_id","field":"c_group_id","type":"text"}],
                              [{"title":"c_group","field":"c_group","type":"text"},
                               {"title":"c_gender","field":"c_gender","type":"text"},
                               {"title":"c_disabled","field":"c_disabled","type":"text"}],
                              [{"title":"c_description","field":"c_description","type":"text"},
                               {"title":"c_create_time","field":"c_create_time","disabled":true,"type":"datetime"},
                               {"title":"c_card_id","field":"c_card_id","type":"text"}],
                              [{"title":"技术类型","field":"c_technology_type","type":"text"},
                               {"title":"c_version","field":"c_version","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_card_face_id',title:'c_card_face_id',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_teaching_age',title:'教龄',type:'int',width:120,align:'left'},
                       {field:'c_status',title:'c_status',type:'sbyte',width:120,align:'left'},
                       {field:'c_skill',title:'c_skill',type:'string',width:120,align:'left'},
                       {field:'c_ski_age',title:'雪龄',type:'int',width:120,align:'left'},
                       {field:'c_qualifications',title:'c_qualifications',type:'string',width:120,align:'left'},
                       {field:'c_photo',title:'c_photo',type:'string',width:120,align:'left'},
                       {field:'c_phone',title:'c_phone',type:'string',width:120,align:'left'},
                       {field:'c_password',title:'c_password',type:'string',width:120,align:'left'},
                       {field:'c_order',title:'c_order',type:'int',width:120,align:'left'},
                       {field:'c_name',title:'c_name',type:'string',width:120,align:'left'},
                       {field:'c_media_ids',title:'c_media_ids',type:'string',width:120,align:'left'},
                       {field:'c_level_id',title:'c_level_id',type:'string',width:120,align:'left'},
                       {field:'c_level',title:'c_level',type:'string',width:120,align:'left'},
                       {field:'c_language',title:'c_language',type:'string',width:120,align:'left'},
                       {field:'c_is_self_edit',title:'c_is_self_edit',type:'sbyte',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_group_id',title:'c_group_id',type:'string',width:120,align:'left'},
                       {field:'c_group',title:'c_group',type:'string',width:120,align:'left'},
                       {field:'c_gender',title:'c_gender',type:'int',width:120,align:'left'},
                       {field:'c_disabled',title:'c_disabled',type:'sbyte',width:120,align:'left'},
                       {field:'c_description',title:'c_description',type:'string',width:120,align:'left'},
                       {field:'c_create_time',title:'c_create_time',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_card_id',title:'c_card_id',type:'string',width:120,align:'left'},
                       {field:'c_technology_type',title:'技术类型',type:'int',width:120,align:'left'},
                       {field:'c_version',title:'c_version',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
